<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="../js/angular.min.js"></script>
		<script type="text/javascript" src="../js/angular-route.min.js" ></script>
	</head>
	<body ng-app="myapp" >
		
		<div>
			<h1>HEAD</h1>
			<ui>
				<li><a href="#/">首页</a></li>
				<li><a href="#/users">用户管理</a></li>
				<li><a href="#/products">商品管理</a></li>
			</ui>
		</div>
		<div ng-view></div>
		
		
		<div>
			<h1>ROOT</h1>
		</div>
		<script type="text/javascript" >
			var myapp=angular.module("myapp",[]);
			myapp.config(["$routeProvider",function($routeProvider){
				$routeProvider.when("/",{
					templateUrl:'demo4-1.html'
				}).when("/users",{
					templateUrl:'demo4-3.html'
				}).when("/products",{
					templateUrl:'demo4-2.html'
				});
			}])
		</script>
	</body>
</html>
